/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package construtora.limiar.mensagens;

/**
 *
 * @author michel
 */
public class Message {
    
    private static String lastException = "";
    private static String lastInfo = "";
    
    private Message(){};

    
    public static String getLastException() {
        String message = lastException;
        lastException = null;
        return message;
    }
    
    public static String getLastInfo() {
        String message = lastInfo;
        lastInfo = "";
        return message;
    }
    
    public static boolean isException() {
        return !lastException.equals("");
    }
    
    public static boolean isInfo() {
        return !lastInfo.equals("");
    }
    
    public static void setLastException(String lastException) {
        Message.lastException = lastException;
    }
    
    public static void setLastInfo(String lastInfo) {
        Message.lastInfo = lastInfo;
    }

}
